﻿@using WebEntities;
@using Tools.com.Pager;
@model PagedList<WI_Experts>
@{
    ViewBag.Title = "专家人物_城市垃圾处理网";
    ViewBag.ClassHead = "head_bg4";
}
<div class="listMain">
    <div class="main_l">
    @Html.Action("CircleMenu", "PublicPartialView", new { miId = (int)ViewBag.MenuItemID })
        <div class="contentBox">
            <div class="searchArea">
            @using (Html.BeginForm("searchexpert", "list"))
            {
                <div class="tit">
                    查找专家</div>
                @Html.TextBox("search", null, new { maxlength = "20", placeholder = "请输入搜索内容", Class = "txtInp" })
                <select>
                    <option value="stdName">按专家名称检索</option>
                </select>
                <input type="submit" value="" class="btnSearch" />
            }
            </div>
        </div>
        @Html.Action("GetExpertRandom", "PublicPartialView")
         @Html.Action("Contact", "PublicPartialView")
    </div>
    <div class="main_r">
        @Html.Action("PageCurrentPath", "PublicPartialView", new { miId = (int)ViewBag.MenuItemID })
        <div class="contentBox">
            <div class="tab">
                <ul>
                    <li class="current">专家人物</li>
                </ul>
                @{ List<WI_ExpertCata> cataList = ViewBag.ExpertCataList as List<WI_ExpertCata>; }
                <span class="subitem">
                <a href="/list/expert">全部</a> | 
                    @foreach (WI_ExpertCata cata in cataList)
                    {
                        <text><a href="/list/expert/@cata.ExpertCataID">@cata.ExpertCataName</a> |</text>
                    }
                </span>
            </div>
            <div class="tab-content">
                @foreach (WI_Experts obj in Model)
                {
                    <dl class="expert-list fl">
                        <dt><a href="/detail/expert/@obj.ExpertID" title="">
                            <img width="90px" height="120px" alt="" src="@obj.ExpertPic"></a></dt>
                        <dd>
                            <p>
                                <b>姓名</b>：<a href="/detail/expert/@obj.ExpertID" title="">@obj.ExpertName</a></p>
                            <p>
                                <b>职称</b>：@obj.ExpertJob</p>
                            <p>
                                <b>职位</b>：@obj.ExpertPosition</p>
                            <p>
                                <b>领域</b>:@obj.WI_ExpertCata.ExpertCataName</p>
                        </dd>
                        <div class="cls">
                        </div>
                    </dl>
                }
                 <div class="cls">
                </div>
              @Html.Pager(Model, new PagerOptions
{
    PageIndexParameterName = "page",
    CssClass = "mvc-pager",
    CurrentPagerItemWrapperFormatString = "<a  href='javascript:void(0)' class=\"mvc-paged\">{0}</a>",
    HorizontalAlign = "center"
})
               
            </div>
        </div>
    </div>
</div>
@section Scripts {
    <script type="text/javascript">
        $(function () {
            var FBIO = "";
            FBIO = setInterval('FBScroll()', 3000);
            $("#zj-scroll-box").hover(function () {
                clearInterval(FBIO);
            });
            $("#zj-scroll-box").mouseleave(function () {
                FBIO = setInterval('FBScroll()', 3000);
            });
        });
        function FBScroll() {
            var aa = $("#zj-scroll dl:first").height() + 5;
            $("#zj-scroll-box").find("#zj-scroll :first").animate({
                marginTop: -parseInt(aa, 10) + "px"
            }, 1000, function () {
                $(this).css({ marginTop: "0px" }).find("dl:first").appendTo(this);
            });
        } 
    </script>
}
